package com.test1;

import java.util.ArrayList;

public class Pool {
	private static ArrayList< Balana > balana = new ArrayList< Balana >();
	
	public static Balana getBalana(){
		if( balana.size() == 0 ){
			return new Balana();
		}
		return balana.remove( 0 );
	}
	public static void push( GameObject b ){
		if( b instanceof Balana ){
			balana.add( (Balana) b );
		}
	}
	
}
